home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 25
/
Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso
/
Aminet
/
game
/
shoot
/
ADoom_src_1_2.lha
/
ADoom_src
/
test_fixed.c
< prev
next >
Wrap
C/C++ Source or Header
|
1998-01-26
|
352b
|
17 lines
#include <stdio.h>
#include "m_fixed.h"
#include "m_swap.h"
int main (void)
{
fixed_t a, b, c;
a = 0x7fff0000;
b = 0xffffffff;
c = FixedDiv (a, b);
printf ("%08x\n", c);
printf ("%08x %08x %08x %08x\n", (int)SWAPSHORT(0x0102), (int)SWAPSHORT(0xff01),
(int)SWAPSHORT(0x7fff), (int)SWAPSHORT(0x8090));
}